Change in openvpn[release/2.6]: ssl_mbedtls: fix missing perf_pop() call
A message that is not in the archive (sent off-list or not yet received): gerrit.1761489176000.I5b6881dc73358c8d1249ee2ceb968ede295105b0@...2715...
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos, flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1305?usp=email
to review the following change.
Change subject: ssl_mbedtls: fix missing perf_pop() call
......................................................................
ssl_mbedtls: fix missing perf_pop() call
This was triggered by a bug report submitted by Joshua Rogers, who used ZeroPath to discover we missed a perf_pop() call in one of the error paths of ssl_mbedtls.c.
Move an existing perf_pop call a bit upwards to fix that.
The perf code is always disabled by ENABLE_PERFORMANCE_METRICS being commented out in perf.h. There is no configure flag. None of the active developers remembers using it and the git log shows no actual code changes since at least the project structure overhaul of 2012. So this has no real-world impact.
---
M src/openvpn/ssl_mbedtls.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/05/1305/1
src/openvpn/ssl_mbedtls.c +1 -1
@@ -1489,13 +1489,13 @@/* Error during read, check for retry error */ if (retval <0 ) { +perf_pop ();if (MBEDTLS_ERR_SSL_WANT_WRITE == retval ||MBEDTLS_ERR_SSL_WANT_READ == retval) {return 0 ; }mbed_log_err (D_TLS_ERRORS , retval,"TLS_ERROR: read tls_read_plaintext error" ); buf->len =0 ; -perf_pop ();return -1 ; }/* Nothing read, try again */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1305?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I5b6881dc73358c8d1249ee2ceb968ede295105b0
Gerrit-Change-Number: 1305
Gerrit-PatchSet: 1
Gerrit-Owner: syzzer <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos, syzzer.
cron2 has posted comments on this change by syzzer. ( http://gerrit.openvpn.net/c/openvpn/+/1305?usp=email )
Change subject: ssl_mbedtls: fix missing perf_pop() call
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1305?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I5b6881dc73358c8d1249ee2ceb968ede295105b0
Gerrit-Change-Number: 1305
Gerrit-PatchSet: 1
Gerrit-Owner: syzzer <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: syzzer <[email protected]...>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Sun, 26 Oct 2025 14:35:06 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 ssl_mbedtls: fix missing perf_pop() call
In reply to a message not in the archiveFrom: Steffan Karger <[email protected]...>
This was triggered by a bug report submitted by Joshua Rogers, who used ZeroPath to discover we missed a perf_pop() call in one of the error paths of ssl_mbedtls.c.
Move an existing perf_pop call a bit upwards to fix that.
The perf code is always disabled by ENABLE_PERFORMANCE_METRICS being commented out in perf.h. There is no configure flag. None of the active developers remembers using it and the git log shows no actual code changes since at least the project structure overhaul of 2012. So this has no real-world impact.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1305
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to release/2.6.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1305
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/ssl_mbedtls.c +1 -1
@@ -1489,13 +1489,13 @@/* Error during read, check for retry error */ if (retval <0 ) { +perf_pop ();if (MBEDTLS_ERR_SSL_WANT_WRITE == retval ||MBEDTLS_ERR_SSL_WANT_READ == retval) {return 0 ; }mbed_log_err (D_TLS_ERRORS , retval,"TLS_ERROR: read tls_read_plaintext error" ); buf->len =0 ; -perf_pop ();return -1 ; }/* Nothing read, try again */
[Openvpn-devel] [PATCH applied] Re: ssl_mbedtls: fix missing perf_pop() call
While this is sort-of a NOP in 2.6, at least it's a consistent NOP now :-)
Your patch has been applied to the release/2.6 branch.
commit e83c63f58135913bb2ca2f4345da8cd77098474b
Author: Steffan Karger Date: Sun Oct 26 15:35:14 2025 +0100
ssl_mbedtls: fix missing perf_pop() call
Signed-off-by: Steffan Karger <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1305
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg33870.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by syzzer. ( http://gerrit.openvpn.net/c/openvpn/+/1305?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: ssl_mbedtls: fix missing perf_pop() call
......................................................................
ssl_mbedtls: fix missing perf_pop() call
This was triggered by a bug report submitted by Joshua Rogers, who used ZeroPath to discover we missed a perf_pop() call in one of the error paths of ssl_mbedtls.c.
Move an existing perf_pop call a bit upwards to fix that.
The perf code is always disabled by ENABLE_PERFORMANCE_METRICS being commented out in perf.h. There is no configure flag. None of the active developers remembers using it and the git log shows no actual code changes since at least the project structure overhaul of 2012. So this has no real-world impact.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1305
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg33870.html
---
M src/openvpn/ssl_mbedtls.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/05/1305/2
src/openvpn/ssl_mbedtls.c +1 -1
@@ -1489,13 +1489,13 @@/* Error during read, check for retry error */ if (retval <0 ) { +perf_pop ();if (MBEDTLS_ERR_SSL_WANT_WRITE == retval ||MBEDTLS_ERR_SSL_WANT_READ == retval) {return 0 ; }mbed_log_err (D_TLS_ERRORS , retval,"TLS_ERROR: read tls_read_plaintext error" ); buf->len =0 ; -perf_pop ();return -1 ; }/* Nothing read, try again */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1305?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I5b6881dc73358c8d1249ee2ceb968ede295105b0
Gerrit-Change-Number: 1305
Gerrit-PatchSet: 2
Gerrit-Owner: syzzer <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1305?usp=email )
Change subject: ssl_mbedtls: fix missing perf_pop() call
......................................................................
ssl_mbedtls: fix missing perf_pop() call
This was triggered by a bug report submitted by Joshua Rogers, who used ZeroPath to discover we missed a perf_pop() call in one of the error paths of ssl_mbedtls.c.
Move an existing perf_pop call a bit upwards to fix that.
The perf code is always disabled by ENABLE_PERFORMANCE_METRICS being commented out in perf.h. There is no configure flag. None of the active developers remembers using it and the git log shows no actual code changes since at least the project structure overhaul of 2012. So this has no real-world impact.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1305
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg33870.html
---
M src/openvpn/ssl_mbedtls.c
1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/ssl_mbedtls.c +1 -1
@@ -1489,13 +1489,13 @@/* Error during read, check for retry error */ if (retval <0 ) { +perf_pop ();if (MBEDTLS_ERR_SSL_WANT_WRITE == retval ||MBEDTLS_ERR_SSL_WANT_READ == retval) {return 0 ; }mbed_log_err (D_TLS_ERRORS , retval,"TLS_ERROR: read tls_read_plaintext error" ); buf->len =0 ; -perf_pop ();return -1 ; }/* Nothing read, try again */
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1305?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I5b6881dc73358c8d1249ee2ceb968ede295105b0
Gerrit-Change-Number: 1305
Gerrit-PatchSet: 2
Gerrit-Owner: syzzer <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>